package com.leo.mapper;


import com.leo.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

/**
 * 部门dao
 */
@Mapper
@Repository
public interface DepartmentMapper {

    //获得所有部门信息
    Collection<Department> getAllDepartment();

    //通过id得到部门
    Department getDepartmentById(Integer id);





}
